home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 June: Reference Library / Dev.CD Jun 95 / Dev.CD Jun 95.toast / What's New? / Sample Code / QuickTime Sample Code / DTS QT Utilities.Apr-95 / Projects & Test Apps / QT Internals / Mac Framework / MacMain.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-16  |  1007 b   |  54 lines  |  [TEXT/MPCC]

  1. /*
  2.     File:        MovieShell.c
  3.  
  4.     Contains:    Simple Mac shell for testing QuickTime.
  5.  
  6.     Written by:    DTS
  7.  
  8.     Copyright:    © 1994-1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.        <1>         12/20/94    khs        first file
  13.        
  14. */
  15.  
  16.  
  17. // INCLUDES
  18. #include <stdio.h>
  19. #include <sioux.h>
  20.  
  21. #include "DTSQTUtilities.h"
  22. #include "MacFramework.h"
  23.  
  24.  
  25. // ______________________________________________________________________
  26. // MAIN
  27. void main(void)
  28. {
  29.     OSErr anErr;
  30.  
  31. // This is for controlling the sioux window under Metrowerks (5.0 forward)
  32. #ifdef USESIOUX    
  33.     SIOUXSettings.initializeTB = false;
  34.     SIOUXSettings.setupmenus = false;
  35. #endif // USESIOUX
  36.  
  37.     InitMacEnvironment(10L);                    // 10 * MoreMasters
  38.     InitMenubar();
  39.     
  40.     if( !QTUIsQuickTimeInstalled() )
  41.         ExitToShell();
  42.         
  43. #if powerc    
  44.     if( !QTUIsQuickTimeCFMInstalled() )
  45.         ExitToShell();                                // I could disable features as well.
  46. #endif 
  47.  
  48.     anErr = EnterMovies(); DebugAssert(anErr == noErr);
  49.     if(anErr != noErr)
  50.         ExitToShell();
  51.  
  52.     MainEventLoop();
  53. }
  54.